<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <title>物资管理/葡萄酒</title>
  <%@ include file="../link_script.jsp" %>
  <script src="js/pmis/pmis-wine.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<html:form styleId="list" action="/wine.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="../operate_button_list.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table id="theObjTable" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
          <tr>
            <td width="4%" class="tdClass">选择</td>
            <td width="4%" class="tdClass">序号</td>
            <td width="25%" class="tdClass">酒/葡萄酒名称</td>
            <td width="10%" class="tdClass">库存量/瓶</td>
            <td width="10%" class="tdClass">进货价/￥</td>
            <td width="10%" class="tdClass">优惠/￥</td>
            <td width="10%" class="tdClass">实际成本/￥</td>
            <td width="9%" class="tdClass">总进货款/￥</td>
            <td width="*" class="tdClass">...</td>           
          </tr>
          <logic:notEmpty name="wineAttachList">
          <% int i = 0; %>
            <logic:iterate id="var" name="wineAttachList">
            <% i++; %>
              <tr>
                <c:if test="${var.paymentBalance=='0'}">
                <td class="STYLE12"><input type="checkbox" name="ids" value="${var.wineID}" /></td>
                <td class="STYLE12"><%=i %></td>
                <td class="STYLE11"><script type="text/javascript">
                  $("ABBR").unbind("click") // 删除所有p元素上的单击事件
                  $("ABBR").bind("click", function() {
	                alert($(this).text());
                  }); // 为每个p元素添加单击事件
                </script><abbr>&nbsp;${var.wineName}</abbr></td>
                <td class="STYLE13"><B>${var.repertoryNum}</B>瓶&nbsp;&nbsp;</td>
                <td class="STYLE13">${var.purchasePrice1}￥&nbsp;</td>
                <td class="STYLE13">${var.preferential1}￥&nbsp;</td>
                <td class="STYLE13">${var.cost1}￥&nbsp;</td>
                <!--td class="STYLE13">${var.totalPayment1}￥&nbsp;</td-->
                <td class="STYLE13">${var.totalPayment2}￥&nbsp;</td>
                <!--td class="STYLE12">平衡</td-->
                <td class="STYLE11">&nbsp;&nbsp;</td>
                </c:if>
                <c:if test="${var.paymentBalance=='1'}">
                <td class="STYLE12"><input type="checkbox" name="ids" value="${var.wineID}" /></td>
                <td class="STYLE12"><%=i %></td>
                <td class="STYLE11"><script type="text/javascript">
                  $("ABBR").unbind("click") // 删除所有p元素上的单击事件
                  $("ABBR").bind("click", function() {
	                alert($(this).text());
                  }); // 为每个p元素添加单击事件
                </script><abbr>&nbsp;${var.wineName}</abbr></td>
                <td class="STYLE13"><B>${var.repertoryNum}</B>瓶&nbsp;&nbsp;</td>
                <td class="STYLE13">${var.purchasePrice1}￥&nbsp;</td>
                <td class="STYLE13">${var.preferential1}￥&nbsp;</td>
                <td class="STYLE13">${var.cost1}￥&nbsp;</td>
                <!--td class="STYLE13">${var.totalPayment1}￥&nbsp;</td-->
                <td class="STYLE13">${var.totalPayment2}￥&nbsp;</td>
                <!--td class="STYLE12">平衡</td-->
                <td class="STYLE11">&nbsp;&nbsp;</td>
                </c:if>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="wine_attach_page.jsp"%>
</table>
</html:form>
</body>
</html>

